import java.io.IOException;
import java.net.ServerSocket;

public class escucha extends Thread {
	public void run() {
		try {
			ServerSocket serverSocket = null;
			boolean listening = true;

			serverSocket = new ServerSocket(4444);
			// System.err.println("arranco el server");
			Thread tarea;
			while (listening) {
				tarea = new nodo(serverSocket.accept());
				tarea.start();
			}
			serverSocket.close();
		} catch (IOException e) {
			System.err.println(e.getLocalizedMessage());
			// System.exit(-1);
		}

	}
}
